package com.tedu.interceptor.contrller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/users")
public class UserController {


    @GetMapping ("/reg")
    public int reg(){
        System.out.println("Usercontroller.reg(): 用户开始注册");
        return 1;
    }
    @GetMapping("/login")
    public String login(){
        System.out.println("Usercontroller.login(): 用户开始登录");
        return "login success";
    }

    @RequestMapping("/delete")
    public String delete(){
        System.out.println("Usercontroller.delete()");
        return "delete success";
    }



}
